home *** CD-ROM | disk | FTP | other *** search
/ Aminet 19 / Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso / Aminet / comm / tcp / Crak.lha / ufc-crypt.h < prev    next >
C/C++ Source or Header  |  1997-02-27  |  2KB  |  95 lines

  1. /*
  2.  * UFC-crypt: ultra fast crypt(3) implementation
  3.  *
  4.  * Copyright (C) 1991, 1992, Free Software Foundation, Inc.
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Library General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.  * Library General Public License for more details.
  15.  
  16.  * You should have received a copy of the GNU Library General Public
  17.  * License along with this library; if not, write to the Free
  18.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  *
  20.  * @(#)ufc-crypt.h    1.13 2/22/92
  21.  *
  22.  * Definitions of datatypes 
  23.  * 
  24.  */
  25.  
  26. /* 
  27.  * Requirements for datatypes:
  28.  * 
  29.  * A datatype 'ufc_long' of at least 32 bit
  30.  * *and*
  31.  *   A type 'long32' of exactly 32 bits (_UFC_32_)
  32.  *   *or*
  33.  *   A type 'long64' of exactly 64 bits (_UFC_64_)
  34.  *
  35.  * 'int' is assumed to be at least 8 bit
  36.  */
  37.  
  38. /*
  39.  * #ifdef's for various architectures
  40.  */
  41.  
  42. #ifdef cray
  43. /* thanks to <hutton@opus.sdsc.edu> (Tom Hutton)  for testing */
  44. typedef unsigned long ufc_long;
  45. typedef unsigned long long64;
  46. #define _UFC_64_
  47. #endif
  48.  
  49. #ifdef convex
  50. /* thanks to pcl@convex.oxford.ac.uk (Paul Leyland) for testing */
  51. typedef unsigned long ufc_long;
  52. typedef long long     long64;
  53. #define _UFC_64_
  54. #endif
  55.  
  56. /*
  57.  * For debugging 64 bit code etc with 'gcc'
  58.  */
  59.  
  60. #ifdef GCC3232
  61. typedef unsigned long ufc_long;
  62. typedef unsigned long long32;
  63. #define _UFC_32_
  64. #endif
  65.  
  66. #ifdef GCC3264
  67. typedef unsigned long ufc_long;
  68. typedef long long     long64;
  69. #define _UFC_64_
  70. #endif
  71.  
  72. #ifdef GCC6432
  73. typedef long long ufc_long;
  74. typedef unsigned long long32;
  75. #define _UFC_32_
  76. #endif
  77.  
  78. #ifdef GCC6464
  79. typedef long long     ufc_long;
  80. typedef long long     long64;
  81. #define _UFC_64_
  82. #endif
  83.  
  84. /*
  85.  * Catch all for 99.95% of all UNIX machines
  86.  */
  87.  
  88. #ifndef _UFC_64_
  89. #ifndef _UFC_32_
  90. #define _UFC_32_
  91. typedef unsigned      ufc_long;
  92. typedef unsigned long long32;
  93. #endif
  94. #endif
  95.